package com.achobeta.recruitment.dao.interact;

import com.achobeta.recruitment.model.Message;
import com.achobeta.recruitment.model.vo.MessageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MessageMapper {
    int insert(Message row);

    int insertSelective(Message row);

    Message selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Message row);

    int updateByPrimaryKey(Message row);

    /**
     * 通过openid查询消息消息（多表连接）
     * @param openid
     * @return
     */
    List<MessageVO> selectMessageByOpenId(@Param("openid") String openid);
}